sorting algorithm

several basic sorting algorithm