% Find a number in any given list
% 10may11
% B
%% Previous: orderloop
function [found]=findorder(tofindinlist,list)
% Find a number in list matrix (leaves || nodes)
for k=1:numel(list)
        if tofindinlist==list(k)
           found=1;
        break
        else 
           found=0;
        
        end
       
end
end