Modify the method to merge the interval of discreteType, Fix the issue of LessThanOrEqual and GreatThanOrEqual and Add testcase of generateCriticalPointRanges