split matrix.c