added fix for index offset failing on ggsearch2
Merge pull request #3 from srobb1/master

added fix in match_tirs subroutine