Bounded variation and the strength of Helly's selection theorem (Logical Methods in Computer Science, 2014)