changed a for-loop back to for-each-loop
changed a for-loop back to for-each-loop

Even IntelliJ suggest to change to for-each-loop where possible.
Is it intentional that all for-each-loops get changed for-loops with
index variables?

For the advantages of for-each-loops please see:
http://docs.oracle.com/javase/1.5.0/docs/guide/language/foreach.html

http://stackoverflow.com/questions/3328672/what-are-the-advantages-of-enhanced-for-loop-and-iterator-in-java

markhun/univie-SDM_K-means,markhun/univie-SDM_K-means