Simple lattice Boltzmann method algorithm with low memory usage