Added some queue classes, ThreadPool now uses a hybrid queue. One of the queues is currently broken.