first part of bloom histogram er redo
partial completion of erGcs opt
works but some issues with performance regression