updated binary search with increase dec