The phylogeny and evolution of two ancient lineages of aquatic plants