Adds sequence_number class

To deal with sequence number wrap-around mostly.