Use multi-threading for the clustering engine