Modified Quicksort algorithm. Still doesn't quite work yet.