nanotube making algorithm thingy