POJ 2378 Tree Cutting