Home made gradient descent with backtracking line search