implemented Doolittle determinants for nxn