sudocode out a binear search