Bottom up DP,AC