Customized output stream class
In experimental implementation, use inheritance from standard stream class, ObjectOutputStream.
Class ArrayOutputStream extends ObjectOutputStream, and defines method replaceObject.
This method tests if argument is a primitive array. If it is, reference to the array is stored in the dataVector, and a small proxy object is placed in the output stream.