Three-dimensional molecular dynamics simulation of nanostructure for reciprocating nanomachining process