[Therion] Loop closure algorithms