[CpmlCurve] Added max arg to intersection APIs