Percolation class - exercise 1

Models percolation problem using UnionFind algorithm