Commit scoreLongestPath method