allocate memory for block likelihoods