BitMask DP on Hamilton Path