working polar code