added armaGinv to use Armadillo for general inversion of matrices
adapted rest of the code to armaGinv
some more changes in armaGinv(.r/.cpp)