A Digital Correlator Based on the Residue Number System