pascal's triangle2 reimpl