Implicit and Explicit Algorithms in Discrete Element Method