add invhilb matrix
add test for invhilb