Added save and load functionality to BSpline class using serialize.h