Homology Algorithms for Subsets of $R^d$