Energy saving of buildings for reducing carbon dioxide emissions using novel dendrite net integrated adaptive mean square gradient