Two-dimensional shape recognition using sparse distributed memory