Simple C program that does matrix calculations