Iterative techniques for CDMA and algorithms for MIMO detection