Renamed locInChunk and fixed an off by one error in the parameters to extendMatch