Make stack handle L and R push/pop
Merge pull request #15 from dotcloud/refactor_stack

Make stack handle L and R push/pop