remove vector<BSONObj>, change heartbeat time, fix memory leak