report on dave's very interesting memory saving algorithm