Vera has a grid with H rows and N columns. Rows are numbered 1 to H from the top, and columns are numbered 1 to N from the left. The cell in row r and column c is written (r,c). Every cell is coloured white or black. A colouring is a pyramid if it satisfies all of the following.
- Exactly N cells are black.
- (1,1) is black.
- If (r,a) and (r,b) are both black, then (r,k) is black for every k with a<k<b.
- If (r,c) is black and (r−1,c) exists, then (r−1,c) is black.
- If (r,c) is black and no k<c has (r,k) black, then (r+1,c), if it exists, is white.
Two pyramids are different if at least one cell has a different colour in them. Count the different pyramids modulo 109+7.