Function made to find H1 for the likelihood matrix.