Add pop and push functions for stack