Revert "binary search"

This reverts commit 80d46077fe40aa5869b7689838b3ec163dbfb5da.