Nonvolatile Multi-level Memory and Boolean Logic Gates Based on a Single Memtranstor