time series clustering with PAM()