getLongestPath done