fixed pair sampling algorithm