benchmarking and merged methods into cp.cpp