More resampling algorithms.