Shell Sort and Selection Sort Implementation