Three-pion correlations in relativistic heavy ion collisions