modified tcp check sum function to include options