fromVector function with traits

And fromVector(std::vector<std::array<T,N>>) function