add various useful functions to reactive matrix and vector