Repests arr number of times.
the array to repeat
the number of times to repeat
a new array containing arr number of times
See Implementation
Repests arr number of times.