Fixed issue in clustering where a tile could be empty, and changed from centroid to "center of charge" as cluster centers.