Add function to calculate Pascal's Triangle