add implementation for selection sort and insertion sort