added matrix_stuff.h