Sometimes the visualizer just randomly crashes, I didn't had the time to properly debug it but I'm pretty sure that happens because we are accessing the same memory withing multiple threads (e.g. when sorting is running and we are doing something that manipulates the sorting data), if this is the problem, it could be fixed with mutexes, but I think that'll for sure take a hit on the sorting speed performance.