Implementation of triple-value memory cell based carbon nanotube field-effect transistor