Optimize bubble sort (-_-)