An iterative algorithm for homology computation on simplicial shapes