Simulation study of hydrogen storage in single walled carbon nanotubes