updated to make to_sorted_array support duplicated elements
Merge branch 'master' of github.com:lanyuyang/monkey-spanner