reduce memory for Percolation API
Finally got 100 point!