Design and Analysis of Nanotube-Based Memory Cells