restructued coeff i and j matrixes to inclued only one instance of H1 and h2 pair in the resultset