Initialization: and ;
.
 Compute according to the first equation of (3.5) for fixed .
 Compute according to the second equation of (3.5) for fixed .
End
 Compute .
Algorithm 1: Alternating minimization algorithm for solving the model (3.4).