Adding quadratic line search and improving armijo search with backtracking