The trees originated in Madagascar 21 million years ago but later traveled long distances by way of ocean currents, according to new research