Fast algorithms for erasures and error correction in redundant residue number systems