Remove bigi dep, optimize byte operations

Replace ```bigi``` with pure js.
Optimize byte operations with bitwise shifts.

Implements #2.