Refactor away the trits array.

Also make chapter and verse 0-indexed (adding one on output only).

Hopefully this version is a little clearer?  It should give exactly
the same results as before.