added new algorithms for curves