C implementation of the determinant function, and the tests are added