 function [ B ] = mybubble( A )
%MYBUBBLE sorts an array using bubblesort
%  expects an array of ingegers
% Minas Spetsakis March 28 2016

N = length(A);
for i=1:N
    for j=1:N-i
        if A(j)>A(j+1)
            t = A(j);
            A(j)=A(j+1);
            A(j+1)=t;
        end;
    end;
end;
B=A;
end

