Implement UCS method to transverse nodes of a tree. Programmed in Java, Fall 2012