fix case with a valley between two seeds, and speed up indexing using stride information