added Brent's method to the optimisation library
added tests to build