Update spline functionality. Modularize splineWorker to calculate matrix multiplications and call proper elements