Numerical solution to the shearing flow of granular materials between two plates