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

https://issues.apache.org/jira/browse/SPARK-3012

I implemented some distance measures between two Vector instances, such as Manhattan distance and Euclidean distance.Because the standardized distance functions help us to implement more machine learning algorithms efficiently