function R = findMapping(X, Means)
% function R = findMapping(X, Means)
%
% Finds mapping for data matrix X and mean vectors Means

n = size(X, 1);
k = size(Means, 1);
[foo, y] = min(dist(X', Means')');
R = sparse(1:n, y, ones(1, n), n, k);
