bugfix: memory corruption might happen in the delete() method. thanks Shuxin Yang for the catch.
added a code comment to the queue_remove() method.