Track.getKey: refactor index calculation into separate method
Implement Track.getValue