A new L1 trigger algorithm for the HL-LHC upgrade & Search for light Higgs bosons via NMSSM cascade decays at the CMS experiment