Search for Lepton Flavor Violation in Z and Higgs decays with the CMS Experiment