Added BFGS and bisection linesearch. Fixed many bugs.