Wiedemann algorithm completed