Create dynamic programming for MSTChen