The Calculation of Indefinite Integrals of B-splines