CritBit64 memory optimisation and new queryWithMask()