A FORWARD ALGORITHM FOR SOLVING OPTIMAL STOPPING PROBLEMS