refactor code
add an implementation for Quick Sort