Uniform cost search in Java. Intro to Artificial Intelligence course - Fall 2013