finished the construction of the hmatrix. the original version works, but the cleaned up version does not seem to be quite there yet. more testing needed