An analog CMOS Neural Network with on-chip Learning and multilevel weight storage