On Iterative Computation of Generalized Inverses and Associated Projections