bin search with recursion done