changed "ORDMAX" to "maxComparisonIndex"