Add scalar multiplication function