Evolution of gene blocks in bacteria using an event-based model