removed c++11 code from MAER estimation

substituted c++11 lambda to functor for wider compilers support