As some processed distances are already ^2, use template to select whether or not we have to ^2 in KMeanspp