C implementation of the classical lattice Boltzmann method (LBM) using the D2Q9 and D3Q19 models