Implement pascalTriangle method