fmincg, gradient descent added. properly matrixed thetas added