Added missing cancel option in cycle sort + added cancel event