simplified LinearSpline class