A simple implementation of clustering that can be solved efficiently by standard linear algebra software.