Isotopologues of MgH with Cooling functions