handling descending sequences in BinarySearchFinder and edge optimizations