Made Vector Templatized

by having caller initialize the vector with the size of each element