added other sorting algorithm