self.assertEquals([1, 2], sort([2, 1])) - pivot approach