Fixed quicksort implementation in algorithms lab framework.