fix the confusion between selection sort and insert sort, use optimization verion to find k numbers closest to the median in the array
repush the previous one