Fix trivial errors.
Preallocate array of best medoids.

Makes a 2x difference!
Fix cluster_membership