My implementation of a 3d vector class in c++