Physics Vector Calculator in C++