using arraycopy

using System.arraycopy copy is faster than using manual copy.