2D Algorithms consolidated