add help classes for shortest path problem