HW4 Regularized cost function - Neural Network