starting conversion of KMeansRex into header and writing test. not close to done yet