Faster than customRepmat in matlab package, in certain cases.
customRep(a, n)
a
to be repeated
n
repeat by
Returns the repeated dataset