https://alandroidnet.com/related/pascal triangle algorithm