matrix.c works

without optimization