function [im1, im2] = query(img, images)
% This is the Heart of This 
    %Sort in descending order of similarity.
    %The colon does not appear to work with rgb2gray.
    for histindex = 1:size(images,2)
        histsims(histindex) = SwayamSimilarity02(rgb2gray(img), rgb2gray(images{histindex}));
    end
    [histsims,histindices] = sort(histsims, 2, 'ascend');
    
    %Pick the two with the greatest similarity.
    im1 = images{histindices(1)};
    im2 = images{histindices(2)};
end