SPARK-1215: Clustering: Index out of bounds error

Bug fix for JIRA SPARK 1215: Clustering: Index out of bounds error

 https://issues.apache.org/jira/browse/SPARK-1215

Solution: Print warning, and use duplicate cluster centers so that exactly k centers are returned.
add `, 2` to test two partitions