Rebound of a high speed piston by gas compression in a closed tube