add DenseVector and SparseVector to mllib, and replace all `Array[Double]` with Vectors

[SPARK-830](https://spark-project.atlassian.net/browse/SPARK-830): add DenseVector and SparseVector to mllib, and replace all `Array[Double]` with Vectors