A recursive formulation for quadratic detection on Rayleigh fading channels