adding arrayCopy function with tests. renaming helper method 'notify' to done