modified wigderson algorithm