Real Business Cycle with Cournot Competition and Endogenous Entry