Create UniqueBST2.java

using cache to store data