Fixeded: Stack and Queue pop function which would pop only 1 element