Add some utility functions for B-splines.