Enhanced Cluster.toString() method
Adapted algorithm for N dimensions