Immutable array implementation

Here is an immutable array substitute for normal swift arrays.