Development of Machine Learning based muon trigger algorithms for the Phase2 upgrade of the CMS detector