fast sort

a fast sort in <programming pearl>, time cost in O(N),space cost in O(N)