function T = MAXIMA(T_1,T_2,K) 
U = T_1.^2+T_2.^2 ; TT1 = []; TT2 = []; UU = []; 
for j = 1:size(U,1); 
    TT1 = [TT1 T_1(j,:)]; TT2 = [TT2 T_2(j,:)]; 
    UU  = [UU U(j,:)];
end 
[Y,I] = sort(UU,2,'descend'); Aux1 = []; Aux2 = []; 
for k=1:K 
    Aux1 = [Aux1 TT1(I(k))]; Aux2 = [Aux2 TT2(I(k))]; 
end 
T=[Aux1' Aux2'];     
end

