use system.arraycopy for compatibility
Merge pull request #1 from jason1peng/master

Use System.arraycopy instead of Arrays.copyOf for compability