working on input
changed to pg 353 data; my input was in error
removed test for i < 0 because unsigned makes redundant