complete vec.cpp

two [] overloads working. all overloads functioning.