Implement simple has algorithms