Add memoizer.java and hashCode method in Cons.java.