Adding code for clustering algorithm, implemented purely
using Galois.