Investigating Neural Networks with Memory Capacity to Classify Images Using Small Number of Samples