added simple boolean edition to binary search