Large scale neural associative memory design and its applications