[SPARK-3012] Standardized Distance Functions between two Vectors for MLlib

https://issues.apache.org/jira/browse/SPARK-3012