denominator implemented.

The only remaining task is to update orbitals with BFGS!
CASSCF code that is supposed to work. There should be bugs, though