Added cycles, MPS and thickness algorithms