1D stochastic simulation of microtubule dynamics and nucleation