calculates pascal triangle
calculates pascal triangle