preparing for communication between peers, changed ArrayLists to ArrayWritable and DoubleWritables, and its faster, coz of array[] instead arraylist.add()