Algorithm to compute triple short cycles. This includes the ESSSR and envelope rings.