Memristor-Based Analog Neuromorphic Computing Engine Design And Robust Training Scheme