added scalar multiply to multiplyVector method