n = 11
A = 7 5 1 12 8 3 13 0 4 20 10
8-th smallest element = 10