Computational Study of the Stability of Nanotube Fragments