A line-based parallel memory for QCA implementation