Tail recursive version of the Pascal's triangle.