add code to subsample an abundance matrix