A search for the Higgs boson decay to two electrons with the Compact Muon Solenoid experiment