code from MSc thesis for cluster analysis of saltmarsh community data