A hadronic transport model for relativistic heavy ion collisions