adding binary search to lseek()