for    do
end  for
for    do
end  for
return  
Algorithm 1