making binary_search_d static