constructor of class matrix modified for use with constexpr values