refactoring: moved method RoutingAlgorithm.calcPath(QueryResult,QueryResult) to a helper method QueryGraph.lookup