Implemented Pascal's triangle