Added vector multiply as a separate function