Implement matrix2ut