Add clusterize function to create cluster trees from arrays of values