Added cloneArray procedure.