You are given M pairs, each made of a positive integer N and an integer K. For every pair, compute the binomial coefficient (KN) modulo 1,000,000,007.
Input
The first line contains the number of pairs M (1≤M≤100,000).
Each of the next M lines contains N and K, separated by a space (1≤N≤4,000,000, 0≤K≤N).
Output
Print M lines. On the i-th line, print (KN) modulo 1,000,000,007 for the i-th pair, in input order.