SGE: Moved from minimum mem/core ratio to median

Hi Brad / Rory,
We've noticed that the lowest common denominator approach is too conservative in our heterogeneous cluster. If you're happy, we'd be happy with using median instead, plus using other SGE tricks to control over allocation of memory (the ``mem_free`` consumable resource approach).