move vector template declaration to header file