A simple k-means clustering algorithm with a GUI in Scala