*manuelTorrealba: intermediate progress in the code.
Added matrix and curveinterpolator.