Added unoptimized version of bubble sort for comparison.