UniquePath with DP