k - means algorithm | ScratchStats