def remove_duplicates(values, compare):
    """
    remove duplicate, keeping order of original elements, using CUSTOM comparison method
    :param values: input list
    :param compare: functions to compare the values
    :return: values without duplicate
    """
    output = []
    for value in values:
        # If value has not been encountered yet,
        # ... add it to output
        if value in output:
            continue
        match = False
        for v2 in output:
            if compare(value, v2):
                match= True
                break

        if not match:
            output.append(value)
    return output