[PD] Alternatives to arraycopy