pamward function

PAM from k-solution of hierarchical clustering