Lloyd's algorithm

From dankwiki