Debugging some issues with the K means training process.