Fixed a bug I introduced my moving the k_means detail function into it's own header, and further tweaked the code prior to rewriting k_means.