Two-stage cluster sample bootstrap algorithm