function MHCReverse
Step 1
for
    
end
for
      Compute velocity vector, (11)
end
Step 2
for
      (19)
end
 (20)
Step 3
for
    for
        
    end
     = corrcoef
end
Step 4
for
     ;
    if & &
    &  
      Flag = 1
      
      
      
    else
      Flag = 0
    end
end
if Flag = 1
    
     = value of where is a minimum
    
end
Step 5
if Flag = 1
  NoSub = 1
   for
        (35)
   end
else
  NoSub = 0
  for
      
  end
end
Pseudocode 3