added more new algorithms for curves