function y = BBsort(x)
%from Matthew Miller and Gruenwald, Matthew's code
n = length(x);
for i = 1 : n - 1
for j = i + 1: n
if x(i) > x(j)
temp = x(j);
x(j) = x(i);
x(i) = temp;
end
end
end
y = x;

end