pascal triangle and rotating array