now uses hashes to store sequences with hits before printing hash contents at the end of the program.