Alternative Vector implementation for Scala