Create threePartition.cpp