Sandpile Model: Parallelization of Efficient Algorithms for Systems with Shared Memory