This problem was asked by Google. Given k sorted singly linked lists, write a function to merge all the lists into one sorted singly linked list.