Nonvolatile memristor as a new platform for non-von Neumann computing