A modified hotelling deflation scheme for inverting matrices