@JoshJers @zens @arnelson Correct: I found that the bubble sort was the reason it took so long by profiling the program.