Gravar-mail: Dynamics of Genome Rearrangement in Bacterial Populations