% Find a number in pointer matrix  node section (column 3)
% 10may11
% B
%% Previous: orderloop
function [foundpointer1,foundpointer2,a]=findpointer(tofindpointer,matrix)
% Find a number in "pointers" node section (column 3)
m=numel(matrix(:,1));

for k=1:m
        if tofindpointer==matrix(k,3)
           foundpointer1=matrix(k,1);
           foundpointer2=matrix(k,2);
           a=k;  
        end
end
end