Implemented simple gradient descent method with fixed step size in cartesian space.