Find k pairs with smallest sums | Google Interview Question