Update numCompare implementation