Implement eq and equal hash tables