Working on matrix.c (not finished).