added speed test in-place vs. new array