Text this: Tracing the paths of modular evolution by quantifying rearrangement events of protein domains