Add hash code algorithms.