realized that I should be simplifying the problem, and calculating a system on each byte, so I don't have to use large integers.  The split and restore methods work, but not consistently.  I still have bugs to fix.