Made vector a template and added a toString.