add mempool to consensus
update readme
fixed algorithm