Added the Rosenbrock function for testing, Cleaned algorithms.