Compression and collisions of chirped pulses in a dense two-level medium