Evrika!
Code is fully functional. Tested successfully for computing the partition
of a known data-set; the result was correct always with all the random
vectors picked.
Next step: complete the graphics stuff and polish the code (error catches
and the lot).