Study of performance for sorting of linked lists