added routines for systems of equations
added promotion of numbers
constructor for vector funs
removed promote_rule2