replaced all for...until in the method clusterOnce() with while, because for...until is slower than while, see [for loop vs. while loop performance](http://www.scala-lang.org/node/4456)