getAInv function

Inverse of the relationship matrix