ANN cost function and Unit test were added.