Improved Vector class