Modularizing Deep Learning via Pairwise Learning With Kernels