Parallelization of the Lattice-Boltzmann schemes using the task-based method