An incremental algorithm for Betti numbers of simplicial complexes on the 3-sphere