Mechanisms and evolution of genome reorganization in ciliated protozoa