added sorting algorithms