insert method corrected- not needing copy of the array