Error-free Training for Artificial Neural Network