Add cosab.asy and add features to cut2d.asy