implemented vector addition and subtraction