General second order MCSCF theory: A density matrix directed algorithm | Synapse