Added BaseN utility to convert long's into encoded strings, and vice-versa. Ensured binarySearch used where possible to improve performance.