added matrix.c file - learning malloc and pointers.