chapter 12 exercise 12-10: define template constructor for Vec class, that takes a pair of iterators. Notice how template function is defined within a template class