def max2(a, b):
    """ returns the maximum element between given a and b;
        note: this is slightly more effcient than using standard Python max function
    """
    if a >= b:
        return a
    return b
