Reduced computations by using H matrix to store temp. results