Finished and debugged first draft of quick sort implementation.