Fast Monte Carlo algorithm for site or bond percolation | Synapse