Percolation Programming assignment for Algortihms class