This project is to write a program that implements the union-find algorithm and  use it to estimate the value of “percolation threshold” for a square lattice