added a more efficient state class.

We add a more efficient state class into DALM.