Matrix sum in c