Singular homology of abstract algebraic varieties