modified bezier3 to include curve of degree 3
added debug support for degree 0 curves aka lines