Longest Motifs with a Functionally Equivalent Central Block