ML assignment 1 - cost function, gradient descent for muliple variables