Remove JRuby from Travis CI build.

JRuby support is tricky, because of the dependency on 'algorithms'
gem that includes C extensions and the fact that building native
extensions for JRuby is not recommended and most likely will become
impossible in the future.
Add Dijkstra algorithm (NOT FINISHED).