Refactor some helper functions. Test stochastic ANN by randomly feed training samples. It has worked, Hooray!