K-means algorithm - Mirošević, Ivančica (Array, 2016)