Updated addRange() method to return cloned version of current array.