public static BigInteger CRT(List<BigInteger> congs,List<BigInteger> moduli){
  BigInteger[] cs=ArrayConverter.convertListToArray(congs);
  BigInteger[] ms=ArrayConverter.convertListToArray(moduli);
  return CRT(cs,ms);
}

public static BigInteger CRT ( List < BigInteger > congs , List < BigInteger > moduli ) { BigInteger [ ] cs = ArrayConverter . convertListToArray ( congs ) ; BigInteger [ ] ms = ArrayConverter . convertListToArray ( moduli ) ; return CRT ( cs , ms ) ; }
computes chinese reminder theorem : x = = congs [ i ] mod moduli [ i ]
