Regularised Cost Function

Allows for regularising the data to allow for Logistic Regression.
Utilises the basic cost function and adds the regularisation term.