replaced bitmap_t with std::vector<bool>, and replaced queue_t with std::queue