Add determinant() and enumerate() functions and their tests