minFunc_2012 An optimized Matlab toolbox