Cut a tree (result from hclust) into groups of data. Groups are in the order of the tree leafs
cutree_order(tree, k = k, h = h)
an hclust object
the desired number of groups
height where the tree is to be cut
Taken from http://larmarange.github.io/JLutils/reference/cutree.order.html