Simple recombining binary trees implementation