Create dictSearchAlgo.java

The bunch of logic