DoubleArray()

included a check if size == length and if so to invoke DoubleArray()
which doubles the size of array and copies the elements onto the new
array.