this is an independent hashmap implementation of revseq