Find Item With Max Value Less Than Another Value
<p>I have an object with two doubles:</p>

<p><code>class SurveyData(){
double md;
double tvd;
}</code></p>

<p>I have a list of these values that is already sorted ascending. I would like to find and return the index of the object in the list with the maximum tvd value that is less than or equal to a double. How can I efficiently accomplish this task? </p>
