Completed the predict function
Completed the regularized cost function