added Subdivide.cpp and Subdivide.h and edited main.cpp