tiny optimization
added inplace version of quick sort
Merge pull request #40 from ConanChou/master

Addition of in place quick sort and some tiny optimizations.