fixed less bug in insertion sort and implemented selection sort