began algorithm layout.

Wrote up simple push/pop algorithm