Replaced fminlbfgs with minFunc in order to work in matlab 2014a

Replaced fminlbfgs with minFunc in order to get exercises to work in
matlab 2014a