adding selection sort and insertion space