Fix record wrapping bug in k_means.k3