ComputeMinWork

Added specific code to compute minimum work