1. A resistive switching nonvolatile memory element comprising: a first electrode; a second electrode; a layer of resistive switching nonstoichiometric metal oxide interposed between the first and second electrodes, wherein the first electrode and the resistive switching metal oxide contain a most prevalent metal that is the same.