added determinant and matrix power