updating cp.cpp
Merge pull request #2 from aorti017/master

updating cp.cpp