Sir, Actually my initial version used SGVector mainly because my earlier commit of set_initial_centers() returned SGVector. But while rebasing I figured that KMeans has be refactored (commit by sonney2k) during which SGVectors had been changed to SGMatrix. So I finally changed to SGMatrix. 
Lets discuss this.