Search for high mass resonances in electron-electron and electron-muon final states with CMS data and study of exotic states with BESIII data