determinant and inverse

determinant and inverse implemented, but not tested