Efficiency

Replaced semi-duplicate code. Rotates arrays and uses left-oriented
algorithm to shift and combine cells.