extract_representation_cpu fixed after latest changes

Hello, @nitishsrivastava 

extract_representation_cpu was broken after latest changes, I fixed it, probably not all the latest functionality will work, but I successfully tested it on feature extraction from imagenet/CLS_net_20140621074703.