Gradient descent code update 1

Gradient descent function that converts pre-hashed feature vectors (X1,
…, Xn) into dummy matrices and fits the model based on those.