fixed logdet in R to match C; made all tests uncommented so CAB can run them