Implemented a Quick Sort Algorithm