Vector class refactoring.