[SPARK-4510][MLlib]: Add k-medoids Partitioning Around Medoids (PAM) algorithm

PAM (k-medoids) including the test case and an example.
Passed the style checks
Tested and compared with K-Means in MLlib, showing more steady performances.