Added interfaces for twoq and auxiliary datastructures.