binary_search method added