Binary search - first occurence of element greater than t