Made changes to make it so that extendMatch and the functions that it calls do not cross chunk boundaries and correctly handle the direction of the DNA