initialisation of the matrices to store the values of the likelihood