changed fromVector (const std::vector<T>& v)