fixed the bitonic sort method