Chinese remainder codes