ASSIGNMENT: percolation assignment first implementation. - minor improvements.