Square law BPSK detector in matlab