Grid implementation of several algorithms (not tested yet)