Stages 1 & 2 refactored. Stage 3 still incomplete.

Made refactoring of the stages 1 and 2 of the algorithm.
Stage 3: started sending the right column.

Stage 3 refactored a bit.
Started working on sending the right column of pixels to the right
neigboring processor.