First attempt at Programming Assignment 1: Percolation