Splines and curve interpolation demo in Java