1. A device including: a first crossbar array having first input columns and first output rows wherein a plurality of the rows of the first crossbar array are configured to store first stored data in the form of high or low resistance states; a second crossbar array having second input columns and second output rows wherein a plurality of the rows of the second crossbar array are configured to store second stored data in the form of high or low resistance states; wherein multiple columns of the second stored data have complementary values to multiple columns of the first stored data and the first output rows are electrically connected to the second output rows.