SERVER-13100 added test cases for IndexBoundsChecker::findIntervalForField. moved intervalCmp out of header.
SERVER-13100 replaced linear search in IndexBoundsChecker::findIntervalForField with std::lower_bound