Fixed the problem of order of variables in hierarchyTree (the data.frame is replaced by a matrix)