Similar Items: Multibit neural inference in a N-ary crossbar architecture