Any sample code that shows search for a range is solved using template III? The one in the solution is trying to find leftIndex and rightIndex separately by using teample-II not template-III.