Addition and scalar multiplication of vectors