Adding Java implementation of shortest path algorithms