updated ccv_convnet to support partition as well

added tests cases for partition, and dispatch_apply for forward
propagate of convnet