Now using 2-bit representation of reference.  Should reduce memory
usage.