Shock waves in gases using molecular dynamics and DSMC methods