Implemented a new code generator for indexed_block

The new generator creates a static displacement array with the displacements embedded in an initialized. At the packing function then loops over this array to move the blocks.