Study of Jet Quenching with Z+jet Correlations in Pb-Pb and pp Collisions at s NN=5.02 TeV