new vector class in libphysics