added getFeasiblePath and getPathLength