{
	bool has_bits(boost::uint8_t const* k, boost::uint8_t const* bits, int len)
	{
		boost::uint32_t idx1 = boost::uint32_t(k[0]) | (boost::uint32_t(k[1]) << 8);
		boost::uint32_t idx2 = boost::uint32_t(k[2]) | (boost::uint32_t(k[3]) << 8);
		idx1 %= len * 8;
		idx2 %= len * 8;
		return (bits[idx1/8] & (1 << (idx1 & 7))) != 0
			&& (bits[idx2/8] & (1 << (idx2 & 7))) != 0;