Fix for sampling from a small population.

For sampling, if the total genes are < the population requested,
it was throwing an error. This adds a check that will sample
with replacement if the number genes are too small for the
size of the sample requested and raise a warning to the user.