Efficient unequal probability resampling from finite populations