BubbleSort implementation in Obj-C