HorizontalReduceBy2, VerticalReduceBy2 and ReduceBy2 + tests.