[cluster] First version of hierarchical clustering
[cluster] Simplify and bugfix hierarchical clustering

o fix prune()
o make comp. weights available as array
o simplify regroup()
o improve doc
o stricter tests