Computation of persistent homology using simplex crushing