Added implementations for vector addition, subtraction, magnitude and sqrmagnitude.