Resolve backwash in Percolation and modify some wrong code style.