Implemented other algorithms apart from Powell's method