Added Thread Safe Array implementation