%Example:
%  findMin([15 6 8 10 2 21]) -> [2 5]
function [minValue minIndex] = findMin(start, values)
minValue = values(start);
minIndex = start;
for index = [start:length(values)]
    if values(index) < minValue
        minValue = values(index);
        minIndex = index;
    end
end
