Add CURVE class and generic functions to curves.lisp