<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def headTail_breaks(values, cuts):
 """ head tail breaks helper function """

    values = np.array(values)
    mean = np.mean(values)
    cuts.append(mean)
    if len(values) > 1:
        return headTail_breaks(values[values >= mean], cuts)
    return cuts