Write a program to return the K smallest number from M sorted lists.