added selection and insertion sorting algorithms