A MODIFICATION OF ROSEN-POLAK'S ALGORITHM