add two algorithms of sorting: heap sort and quick sort. all these codes
are tested and seem to work well.