balseq function

Sequential balanced sampling