add select sort and quick sort with 2 version partiton function