I don\'t understand where it is overflowing. The output for data of 5 elements [2 3 9 2 2] is [7208668 3 2 2 9] instead of [2 2 2 3 9].
This partition is called from a an