moved k_means to bsta from sdet to allow more global linking
moved k_means to bsta from sdet to allow more global linking