Unify the CPU/GPU versions of Forward/Backward of the Im2colLayer