Improving performance

1. Changed basic type from ArraryList<Double> to double[].
2. Have a built-in function in DoubleArrayWritable.java to deal with
multiplication operations.