matrix.c done i think