Find mean value of x-dimension vector from 2d ArrayList function added