Cofnod E-bost: Numerical analysis of stochastic SIR model by Legendre spectral collocation method