Move DataOutput2 and DataInput2 into DataIO class