Gravar-mail: A cubic algorithm for the generalized rank median of three genomes