E-mail the story: Algorithm could help chipmakers work with tangles of nanotubes