Updated dyamic array class to be more like array.