Add BezierCurve class which uses a matrix (closes #117)