Blockwise algorithms

Merge all blockwise-XY branches into a single one