Added some vector utility functions.
Changed SetSize/GetSize functions to use vectors.