The core bitmapping indexing code for project-z