Gradient descent for linear regression with one variable.
swap t0 t1