fbs function

Fast Balanced Sampling