rewrite buffered queue to be faster
wait for first heartbeat
Merge pull request #6 from adeven/speed_up

rewrite buffered queue to be faster