add matrix inverse
add deriveG, deriveW, test
Merge remote-tracking branch 'origin/master'