rmcpy() method uses array copy to decrease time