function i = argmin(X)
    [~,i] = min(X);
end