add Functor class
MatrixFromFunction, not working