Reduce memory during rebuild by using iterator()

Reduce the memory used while rebuilding denorms
Merge pull request #27 from gerdemb/upstream

Reduce memory during rebuild by using iterator()