Loops and Multi-Dimensional Grids on Hypercubes Mapping and Reconfiguration Algorithms