def isWinner(data,c1,c2):
    """
	This function takes the preference ranking data as an input parameter. It computes the 
    head to head winner for the two candidates that are passed into it as parameters.
    If the first candidate passed as a paramter wins against the second candidate, then 
    the function will return true, else, the function will return false.
	Parameters:
        	data - The preference ranking data as a list of lists.
	Return Value:
        	True - if first candidate wins
         False - if first candidate does not win
	"""
    lenC1 = 0
    lenC2 = 0
    countC1 = 0 
    countC2 = 0
    
    for c in data:
        
        for i in range(len(c)):
            if c[i] == c1:
                lenC1 = i
            elif c[i] == c2:
                lenC2 = i
                            
        if lenC2 >= lenC1:
                        countC1 = countC1 + 1
        elif lenC2 <= lenC1:
                        countC2 = countC2 +1
                                            
    if countC1 >= countC2:
        return True 
    
    return False