An analog CMOS approximate identity neural network with stochastic learning and multilevel weight storage