More FM methods added

Here it is, ndims is set in compilation time, you can use for other things. You can declare here the typedef   std::vector< std::array< double, grid_t::getNDims() > > path_t for the whole class if you wany.