Begin algorithm

Input:.

Output: and.

Calculate, and using Equations (17), (16) and (4).

for do

end

Calculate and using Equations (1) and (5).

Calculate using Equation (7).

End algorithm