added three sorting algorithms