Made GLM class.
Added cost function for linear and going to add cost for logistic next.
Changed to use in place api, so no unecessary alloc.

Next TODO: is normalization and regularization.