Determinant based configuration interaction algorithms for complete and restricted configuration interaction spaces | Synapse