Efficient Constant-Time Complexity Algorithm for Stochastic Simulation of Large Reaction Networks