Example of solving two-dimensional likelyhood likelihood of percolation using UionFind algorithms.