The theory of splines and their applications