Adding Java-accessible methods to Vector.scala

This is needed for the Strata machine learning tutorial (and also is generally helpful).