Efficient computation of simplicial homology through acyclic matching