add partition.cpp