Some elements of the Step 3.

Introduced 2 new structures. Started implementing Step 3 of the algorithm
- copied local UF and pixel data to the array of structures that will be
used for the global UF.