Implemented Quick sort

This first implementation has some flaws, particularly an out of bounds
index access for a certain input. I'll track it down tomorrow.