poj 1185. DP, state compression