added a continuation-implemented bthread class.