solve pascal-triangle