Reducer is introduced to merge cols / rows.

Major refactoring