added recursive version of doubleEveryOther