reading and updating arrays support added. gpu/cuda2d test works.