Compact metric spaces, Fredholm modules, and hyperfiniteness