Refactor max-pooling.
Refactor subsampling.
Fix max-pooling.
Remove test script.