New function to index a collection of biosequences