Added scheme for functions addition, scalarmultiply, matrixmultiply.