Added recursive method to calculate array offset.
Added assignment and read for array.