Improve advanced bitonic sort, further optimizations needed