updated to not need to copy the array, correct testing procedure in the readme