Rewrote qtn4 and mat3 using std::array
Replaced vec3 by array<double, 3>