smalled edit to sorting algorithms
reimplemented sorting algorithms for practice. quick sort is still difficult for me