Matrix Summary Functions in C