Dendrogramming script

To be continued... with plorts perhaps.