Simulation of Cavity Flow by the Lattice Boltzmann Method