added matrix_stuff.c