This is the method of steepest descent with line search in matlab