Pseudo-inverses in Semigroups