improved doubleEveryOther impl