* Fix a bug in previous solution: the DP array has to be initialized with respective height of each placed block.