Revisiting longestPath.rb