Group documents in a hierarchy of clusters