Add 'pop' function to hash map