improved name of auxiliary functions and corrected a bug when dealing with zero matrices or positive constraint in the duality gap.