One thread and multithreading sorting algorithms