removed c++11 features from MAER estimation

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