pam and pamcluster

added things to PAMCluster to help compute cost
started the swap method in PAM