Code for estimation with BPSK