pivot should be the first element, not the array.

edited due to the instruction in the comments two lines below.
Merge pull request #1 from joom/patch-1

pivot should be the first element, not the array.