Design and evaluation of a digit-parallel multiple-valued content-addressable memory