Corrected the calls to binarySearchFindFirst() and binarySearchFindLast()