isExtremum is added

getIPoints is edited