Ruby version of clustering algorithms from "Algorithms of the Intelligent Web"