Start working on Matrix-Scalar function
add a naive solution for compute derivative of SMFUNC(MMFUNC * SMFUNC). Bugs need to be fixed.