Re: Pattern Matching

"[[[[ag,bg],cg],[dg,eg]],[fg,gg]]"

(0, (1, 24))
(1, (2, 15))
(2, (3, 11))
(3, (4, 7))
(4, (a, 5, 5))
(5, (g, 6, 6))
(6, (10, 10))
(7, (b, 8, 8))
(8, (g, 9, 9))
(9, (10, 10))
(10, (14, 14))
(11, (c, 12, 12))
(12, (g, 13, 13))
(13, (14, 14))
(14, (23, 23))
(15, (16, 19))
(16, (d, 17, 17))
(17, (g, 18, 18))
(18, (22, 22))
(19, (e, 20, 20))
(20, (g, 21, 21))
(21, (22, 22))
(22, (23, 23))
(23, (32, 32))
(24, (25, 28))
(25, (f, 26, 26))
(26, (g, 27, 27))
(27, (31, 31))
(28, (g, 29, 29))
(29, (g, 30, 30))
(30, (31, 31))
(31, (32, 32))
(32, (0, 0))
(33, (0, 0))