second assignment. Implementing quick sort.