symmetric matrix program in c