Merging UniVarNode and MultiVarNode into one class