CNN features extraction in batches

Prepared the execution of the CNN features in batches and using the GPU.