Added functions to vector class.