Basic regression with gradient descent