Percolation simulator wrote in C++