Both write() and search() use the same O(n) for loop but the search reports match position values one less than the write() reports writing them. Is there something that cha