Minor fix in LongestPath.cs