Monte Carlo routines for carbon nano tube magnetic properties simulation.