select sort and quick alogrithm