Generate determinants for CASSCF calculation