Update Percolation.java

Tried using Boolean argument.. passed memory tests 1 and 3.. but failed timing