POJ 1185 (state compression dp)