Fix broken functionality in lloyds
Fix broken functionality in lloyds

Previously, would allocate unecessarily large matricies for
tracking and counting cluster membership.

Also would not properly determine when a sample function was given
compared to the standard uniform sampling algorithm

Lionex/ISC4221