CT lab4 majority decoder