A device includes 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, and 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. The second stored data is a
complement of the first stored data and the first output rows are
electrically connected to the second output rows. The device provides for
data storage and comparison for computer processing, audio/speech
recognition, and robotics applications.