optimization of the SER (error) computation for superposition codes