some common sorting algorithm