fixing error in equation in algorithm 2 for  computation of z