Given a number N, construct the Pascal's triangle with N rows. Wikipedia