Random forest and PAM