Made vector class a template