add operator== for mempool
update implementation.
update release_drain_pool, bug encountered.