Changed pop so that it returns the extracted obj.
aliases: top -> next, top_key -> next_key