updated cp.cpp
Merge pull request #3 from aorti017/master

updated cp.cpp