renamed binarysearch to naivesearch