Extended AbstractCollection: needsHashing()
Stack class implementation