Longitudinal waves in carbon nanotubes in the presence of transverse magnetic field and elastic medium