Bugfix: Use signed types so that j can go negative without underflow
Bugfix: Use signed types so that j can go negative without underflow

In some cases, j made it negative which made (j > high) true creating a segfault condition

bitcoin/libbase58,bitcoin/libbase58,luke-jr/libbase58,luke-jr/libbase58