An efficient method for the computation of glueball masses using the inverse of the covariant dirac operator as correlator