Deep Lifelong Learning with Factorized Knowledge Transfer