Sequence design and applications for CDMA systems