The number of transactions is variable so make merkle a variable length dynamically allocated array and track how many there are for stratum.