Got basic clustering working with simple arrays and numbers