I have an array of values and I want to assign them each to two classes. I just know there are $2$ classes and I know the numbers are $6$, but I don't know the numbers beforehand. So if I have: $10, 50, 60, 11, 55, 13$, the result should be: group1: $10, 11, 13$ group2: $50, 55, 60$
How can I do this?