blockqueue.h and .cpp updated