Median and sorted linked list