IAN: Iterated Adaptive Neighborhoods for manifold learning and dimensionality estimation