Hansen, Sönke: An algorithm for Lagrangian subspaces. . In: Linear algebra and its applications. Vol.1990, page155176