new snippets; fixed space complexity of quicksort
.