beautified angularResolutionCriterion and speed up MetroMapLayout optimization method