Refactor append function
Merge remote-tracking branch 'origin/sample-qsort' into develop