Create a matrix class instead of using uint32_t**.