Molecular dynamics simulations of folding processes of a β-hairpin in an implicit solvent