Clustering implemented in Elixir