Added Det for dual and complex numbers.