Monte Carlo simulation of carbon fragmentation at high energies