commented logdet implementation