Revert "Added push and pop feature for staack of open elements"

This reverts commit 872d8919fbce83209dd4a7099c7d4a97e250cc7f.
Revert "Revert "Added push and pop feature for staack of open elements""

This reverts commit 7b0b4a91fb3029e52e44eddd1312960d1774cba9.