now mods C by max denomination value so should run in constant time
Merge pull request #24 from osterbit/tom

changedp now mods C by max denomination value so should run in constant time