c++ class of math vector