Added groups option

This is necessary to use caffe networks in Torch.