Molecular dynamics simulation of carbon structures inside small diameter carbon nanotubes