Library of spatially constrained clustering algorithms