Utility function to find minimum of pair type values
def minPair ( a : list , b : list ) -> list : NEW_LINE INDENT if a [ 0 ] <= b [ 0 ] : NEW_LINE INDENT return a NEW_LINE DEDENT else : NEW_LINE INDENT return b NEW_LINE DEDENT DEDENT