drop use of term offset in favor of index
improved performance of queue by dropping shift() for internal high/low index tracking
added first round of queue unit tests