BTreeLongestPath