subsample function (reduce num sequences, num codons)