How to find Determinant 2x2 and 3x3 in C program?