Small fix up in algorithm
Changed the value swaping. Instead of swaping pivot_index and i-1
we swap 1st element (the new pivot index) and i-1