used ArrayList in CPUmonitor getting IndexOutofBoundsException