Programming assignment for week 1 of Algorithms: Percolation