added wrapper class BSpline for java