Splits each array into two smaller arrays, left and right. Elements smaller than chosen pivot go left, rest goes right