Chinese remainder algorithm
2.3.0