Molecular dynamics simulation of polymer crystallization through chain folding