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

updated cp.cpp