Triple correlation analysis of binary sequences for codeword detection