http://qs321.pair.com?node_id=970689


in reply to filling in the zeros...please help

If you can hold everything in memory, this should come close to doing what you want. It has the following assumptions/behviors: