Numerical study of the Kardar-Parisi-Zhang equation