finished initial implementation of bufferHashTable, too lazy to debug compile errors right now