edit quick-sort comment
add some design patterns