bal_subsampling function

Subsampling