Implemented determinant algorithm and wrote tests.