Week 1 assignment

added percolation function