CRP Code

The code of CRP and algorithm 1
