Two-body non-leptonic heavy-to-heavy decays at NNLO in QCD factorization