I found quicksort algorithm from this book
This is the algorithm
QUICKSORT (A, p, r) i
In addition to Deestan's answer, you also have this wrong:
for (int j = low; j < high-1; j++)
It should be:
for (int j = low; j < high; j++)