Add quick-sort of list type, from stackoverflow