Percolation Java program that uses dynamic connectivity WQUPC class