use nHeight in ComputeMinWork