fix memory leak

change int[] to boolean[]
Merge pull request #1 from sleeperbus/Percolation_memory_leak

fix memory leak