changed kMeansRex.h over to ArrayXXd inputs rather than ExtMat mapped arrays