gcmlcm function

Greatest Convex Minorant and Least Concave Majorant