Validation of a track repeating algorithm for intensity modulated Carbon therapy with GEANT4.