Neural network based feed-forward high density associative memory