added zeropad, refactored code
use ccn2 for all max-poolings because of the bug in nn and cudnn