Adding the C interface to evaluate kmeans and kdtrees